/**
  ******************************************************************************
  * @author Chris
  * @since 2023/2/23 23:59
  *
  * @file     led.c
  * @brief    The project will ...
  *
  * @note     ...
  *
  * @warning  Do not to ...
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2023/2/23     Chris        the first version
  *
  ******************************************************************************
  */
#include "led.h"

void LED_Init(void)
{
  __HAL_RCC_GPIOA_CLK_ENABLE();
  __HAL_RCC_GPIOD_CLK_ENABLE();

  GPIO_InitTypeDef GPIO_Init;
  GPIO_Init.Pin = GPIO_PIN_8;
  GPIO_Init.Pull = GPIO_PULLUP;
  GPIO_Init.Mode = GPIO_MODE_OUTPUT_PP;
  GPIO_Init.Speed = GPIO_SPEED_FREQ_HIGH;
  HAL_GPIO_Init(GPIOA, &GPIO_Init);

  GPIO_Init.Pin = GPIO_PIN_2;
  HAL_GPIO_Init(GPIOD, &GPIO_Init);
}